import { http } from "@/utils/http";

export function GetWorkflow(query) {
  return http.get("/api/v1/kubeHud/k8s/workflow/list", { params: query });
}

export function GetWorkflowByID(query) {
  return http.get("/api/v1/kubeHud/k8s/workflow/id", { params: query });
}

export function DeleteWorkflow(query) {
  return http.delete("/api/v1/kubeHud/k8s/workflow/del", { params: query });
}

export function CreateWorkflow(data) {
  return http.post("/api/v1/kubeHud/k8s/workflow/create", { data });
}
